package com.generator.sysManage.areaManage.controller;


import com.generator.sysManage.areaManage.pojo.AreaManageInfom;
import com.generator.sysManage.areaManage.service.AreaManageService;
import com.generator.util.PageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 88168
 * @since 2022-10-03
 */
@Controller
@RequestMapping("/areaManage")
public class AreaManageController {
    @Autowired
    private AreaManageService areaManageService;
    //区域列表（分页）
    @RequestMapping("/areaList")
    public String userList(Model model, AreaManageInfom areaManageInfom, PageModel<AreaManageInfom> pageModel){
        PageModel<AreaManageInfom> list = areaManageService.getAreaInfom(areaManageInfom,pageModel);
        model.addAttribute("areaList",list);
        return "sys/area/areaList";
    }

}

